package com.yao.presenter.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.yao.AppConfig;

import java.util.List;

public class IndexDataBean implements MultiItemEntity {


    /**
     * classifyId : 1163725518139355137
     * classifyName : 办会
     * children : [{"id":"1","appLogo":"https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=2775059220,3498463715&fm=58&bpow=1024&bpoh=1024","appName":"学习","appLink":"https://article.xuexi.cn/articles/index.html?art_id=9413660051172980521"},{"id":"2","appLogo":"https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=2602550849,2323487584&fm=58&bpow=524&bpoh=532","appName":"雪球","appLink":"https://xueqiu.com/"},{"id":"3","appLogo":"https://ss1.baidu.com/6ONXsjip0QIZ8tyhnq/it/u=4094533855,2791674877&fm=58&bpow=500&bpoh=500","appName":"知乎","appLink":"https://www.zhihu.com"}]
     */

    private String classifyId;
    private String classifyName;
    private int position;
    private int pos;
    private List<ChildrenBean> children;


    public String getClassifyId() {
        return classifyId;
    }

    public void setClassifyId(String classifyId) {
        this.classifyId = classifyId;
    }

    public String getClassifyName() {
        return classifyName;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName;
    }

    public List<ChildrenBean> getChildren() {
        return children;
    }

    public void setChildren(List<ChildrenBean> children) {
        this.children = children;
    }

    @Override
    public int getItemType() {
        return AppConfig.ItemType.ITEMTYPE_INDEX_TITLE;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public int getPos() {
        return pos;
    }

    public void setPos(int pos) {
        this.pos = pos;
    }

    public static class ChildrenBean implements MultiItemEntity {
        /**
         * id : 1
         * appLogo : https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=2775059220,3498463715&fm=58&bpow=1024&bpoh=1024
         * appName : 学习
         * appLink : https://article.xuexi.cn/articles/index.html?art_id=9413660051172980521
         */

        @Override
        public int getItemType() {
            return AppConfig.ItemType.ITEMTYPE_INDEX;
        }

        private String id;
        private String appLogo;
        private String appName;
        private String appLink;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getAppLogo() {
            return appLogo;
        }

        public void setAppLogo(String appLogo) {
            this.appLogo = appLogo;
        }

        public String getAppName() {
            return appName;
        }

        public void setAppName(String appName) {
            this.appName = appName;
        }

        public String getAppLink() {
            return appLink;
        }

        public void setAppLink(String appLink) {
            this.appLink = appLink;
        }
    }
}
